In edebug-pop-to-buffer don't try to split the minibuffer window (Bug#10851).
authormartin rudalics <rudalics@gmx.at>
Mon, 8 Oct 2012 06:42:29 +0000 (08:42 +0200)
committermartin rudalics <rudalics@gmx.at>
Mon, 8 Oct 2012 06:42:29 +0000 (08:42 +0200)
* emacs-lisp/edebug.el (edebug-pop-to-buffer): Don't try to split
the minibuffer window (Bug#10851).

lisp/ChangeLog
lisp/emacs-lisp/edebug.el

index 8c6701f3ca74af52092e00de5dc8df838147fb5e..38f953b7547e1874322b4837fdd31159661778bb 100644 (file)
@@ -1,3 +1,8 @@
+2012-10-08  Martin Rudalics  <rudalics@gmx.at>
+
+       * emacs-lisp/edebug.el (edebug-pop-to-buffer): Don't try to split
+       the minibuffer window (Bug#10851).
+
 2012-10-08  Fabián Ezequiel Gallina  <fgallina@cuca>
 
        Enhancements on forward-sexp movement.
index 18d1661e985e30d820f1e053a8c64ee85ba1dd58..483ed64de208280a378089a414144dd57b7323b8 100644 (file)
@@ -371,7 +371,7 @@ Return the result of the last expression in BODY."
         ((get-buffer-window buffer 0))
         ((one-window-p 'nomini)
          ;; When there's one window only, split it.
-         (split-window))
+         (split-window (minibuffer-selected-window)))
         ((let ((trace-window (get-buffer-window edebug-trace-buffer)))
            (catch 'found
              (dolist (elt (window-list nil 'nomini))
@@ -382,7 +382,7 @@ Return the result of the last expression in BODY."
                  (throw 'found elt))))))
         ;; All windows are dedicated or show `edebug-trace-buffer', split
         ;; selected one.
-        (t (split-window))))
+        (t (split-window (minibuffer-selected-window)))))
   (set-window-buffer window buffer)
   (select-window window)
   (set-window-hscroll window 0)) ;; should this be??